<?php
// Test of the limits of the Cubie construct
class UTCenter extends UnitTestCase {
    function testConstruct() {
        try {
            $this->pass('CENTER type OK');
        }
        catch (Exception $e) {$this->fail();}

        try {
            $myCenter = new center(center::MAX_CENTER + 1);
            $this->fail('CENTER TYPE KO 1');
        }
        catch (Exception $e) {$this->pass();}

        try {
            $myCenter = new center(-1);
            $this->fail('CENTER TYPE KO 2');
        }
        catch (Exception $e) {$this->pass();}

        try {
            $myCenter = new center("stupid param");
            $this->fail('CENTER TYPE KO 3');
        }
        catch (Exception $e) {$this->pass();}
    }
}
?>